<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<script type="text/javascript" src="lib/PIE_IE678.js"></script>
<![endif]-->
<link href="css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="css/H-ui.admin.css" rel="stylesheet" type="text/css" />
<link href="lib/icheck/icheck.css" rel="stylesheet" type="text/css" />
<link href="lib/Hui-iconfont/1.0.6/iconfont.css" rel="stylesheet" type="text/css" />
<link href="lib/webuploader/0.1.5/webuploader.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>新增站点</title>
</head>
<body>
<div class="pd-20">
	<form action="<%=path%>/backstage/t_city_shop-add" method="post" class="form form-horizontal" id="form-t_city-add">
		
		<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>站点编号：</label>
            <div class="formControls col-2">
             
                <input type="text" class="input-text" value="${t_city.id}" placeholder="" id="id" name="id" datatype="n" nullmsg="不能为空"  <c:if test="${!empty t_city.id}">readonly="readonly"</c:if> >
        	</div>
		</div>

        <div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>站点名称：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${t_city.name}" placeholder="" id="" name="name" datatype="*" nullmsg="不能为空">
        	</div>
			<label class="form-label col-2"><span class="c-red">*</span>简写：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${t_city.u_name}" placeholder="示例 浏阳简写:LY" id="" name="u_name" datatype="s" nullmsg="不能为空"> 
        	</div>
			 <div class="formControls col-2">示例 浏阳简写:LY</div>
		</div>

        <div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>站点位置：</label>
            <div class="formControls col-8">
                <input type="text" class="input-text" value="${t_city.address}" placeholder="" id="" name="address" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>联系负责人：</label>
            <div class="formControls col-4">
                <input type="text" class="input-text" value="${t_city.contacts}" placeholder="" id="" name="contacts" datatype="*" nullmsg="不能为空">
        	</div>
		</div>
		 <div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>分站备用金：</label>
            <div class="formControls col-4">
                <input type="text" class="input-text" value="${t_city.reserve_money}" placeholder="" id="" name="reserve_money" datatype="/^[0-9]+(\.\d+)?$/" nullmsg="不能为空">
        	</div>
		</div>
        <div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>联系电话：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${t_city.tel}" placeholder="" id="" name="tel" datatype="m" nullmsg="不能为空">
        	</div>
		</div>

		<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>中心点 经度：</label>
			<div class="formControls col-2">
				<input type="text" name="longitude" datatype="/^-?[1-9]+(\.\d+)?$|^-?0(\.\d+)?$|^-?[1-9]+[0-9]*(\.\d+)?$/" nullmsg="请填写" id="" placeholder="" value="${t_city.longitude}" class="input-text" style="width:100%">
			</div>
			<label class="form-label col-2"><span class="c-red">*</span>纬度：</label>
			<div class="formControls col-2">
				<input type="text" name="latitude" datatype="/^-?[1-9]+(\.\d+)?$|^-?0(\.\d+)?$|^-?[1-9]+[0-9]*(\.\d+)?$/" nullmsg="请填写" id="" placeholder="" value="${t_city.latitude}" class="input-text" style="width:100%">
			</div>
			<div class="formControls col-2">
				<a href="http://www.gpsspg.com/maps.htm" target="_blank">经纬度查询</a>
			</div>
		</div>

        <div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>配送范围：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${t_city.send_distance}" placeholder="" id="" name="send_distance" datatype="/^[\d\.]+$/" nullmsg="不能为空">
        	</div>
			<label class="form-label col-2">公里</label>
		</div>

		<div class="row cl">
			<label class="form-label col-2">状态(是否开通)：</label>
  
			<div class="formControls col-5 skin-minimal">
				<div class="radio-box">
				  <input type="radio" name="is_open" datatype="*" nullmsg="请选择！" value="0" checked="true" <c:if test='${0==t_city.is_open}'>checked="true"</c:if> >
				  <label for="sex-1">筹备中</label>
				</div>
				<div class="radio-box">
				  <input type="radio"  name="is_open" datatype="*" nullmsg="请选择！" value="1" <c:if test='${1==t_city.is_open}'>checked="true"</c:if> >
				  <label for="sex-2">是</label>
				</div>
			 </div>

		</div>
		
		<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>是否自动派单：</label>
  
			<div class="formControls col-3 skin-minimal">
				<div class="radio-box">
				  <input type="radio" name="is_auto_allocateorder" datatype="*" nullmsg="请选择！" value="0" checked="true" <c:if test='${0==t_city.is_auto_allocateorder}'>checked="true"</c:if> >
				  <label for="sex-1">否</label>
				</div>
				<div class="radio-box">
				  <input type="radio"  name="is_auto_allocateorder" datatype="*" nullmsg="请选择！" value="1" <c:if test='${1==t_city.is_auto_allocateorder}'>checked="true"</c:if> >
				  <label for="sex-2">是</label>
				</div>
			 </div>

		</div>
   	
   		<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>配送员距离相同的范围：</label>
            <div class="formControls col-3">
                <input type="text" class="input-text" style="width:85%" value="${t_city.same_distance}" placeholder="" id="" name="same_distance" datatype="/^[\d\.]+$/" nullmsg="不能为空">公里
        	</div>
		</div>
		
		<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>配送端配送评价4星奖励：</label>
            <div class="formControls col-3">
                <input type="text" class="input-text" style="width:85%" value="${t_city.send_fouraward}" placeholder="" id="" name="send_fouraward" datatype="/^[\d\.]+$/" nullmsg="不能为空">元
        	</div>
		</div>
		
		<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>配送端配送评价5星奖励：</label>
            <div class="formControls col-3">
                <input type="text" class="input-text" style="width:85%" value="${t_city.send_fiveaward}" placeholder="" id="" name="send_fiveaward" datatype="/^[\d\.]+$/" nullmsg="不能为空">元
        	</div>
		</div>
		
		<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>申请退货时间范围：</label>
            <div class="formControls col-3">
                <input type="text" class="input-text" style="width:85%" value="${t_city.return_goods_time}" placeholder="" id="" name="return_goods_time" datatype="n" nullmsg="不能为空">天
        	</div>
		</div>
		
		<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>配送额度-满多少元免配送费：</label>
            <div class="formControls col-3">
                <input type="text" class="input-text" style="width:85%" value="${t_city.sendlimit}" placeholder="" id="" name="sendlimit" datatype="/^[\d\.]+$/" nullmsg="不能为空">元
        	</div>
		</div>
		
		<div class="row cl">
			<label class="form-label col-2"><span class="c-red">*</span>分站-配送费：</label>
            <div class="formControls col-3">
                <input type="text" class="input-text" style="width:85%" value="${t_city.sendfee}" placeholder="" id="" name="sendfee" datatype="/^[\d\.]+$/" nullmsg="不能为空">元
        	</div>
		</div>
		

        <div class="row cl">
			<label class="form-label col-2">营业时间：</label>
            <div class="formControls col-2">
                <input type="text" class="input-text" value="${t_city.open_time}" placeholder="" id="" name="open_time" datatype="*" nullmsg="不能为空">
        	</div>
			 <div class="formControls col-2">示例: 8:00--18:00</div>
		</div>

        
		<div class="row cl">
			<div class="col-10 col-offset-2">
				<button onClick="t_city_save_submit();" class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 提交</button>
				<button onClick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
			</div>
		</div>
	</form>
</div>
</div>
<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="lib/layer/2.1/layer.js"></script> 
<script type="text/javascript" src="lib/My97DatePicker/WdatePicker.js"></script> 
<script type="text/javascript" src="lib/icheck/jquery.icheck.min.js"></script> 
<script type="text/javascript" src="lib/Validform/5.3.2/Validform.min.js"></script> 
<script type="text/javascript" src="lib/webuploader/0.1.5/webuploader.min.js"></script> 
<script type="text/javascript" src="lib/ueditor/1.4.3/ueditor.config.js"></script>
<script type="text/javascript" src="lib/ueditor/1.4.3/ueditor.all.min.js"> </script>
<script type="text/javascript" src="lib/ueditor/1.4.3/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="js/H-ui.js"></script> 
<script type="text/javascript" src="js/H-ui.admin.js"></script> 
<script type="text/javascript">

function t_city_save_submit(){
	$("#form-t_city-add").Validform({
		tiptype:2,
		ajaxPost:true,
		callback:function(form){
			var index = parent.layer.getFrameIndex(window.name);
			if (index){//关闭弹出层
				parent.$('.btn-refresh').click(); 
				parent.layer.close(index);
			}else{//单独的页面
				location.href = "<%=path%>/backstage/t_city-list"; 
			}
		}
	});
}

</script>
</body>
</html>

